{% extends "../adminbase.html" %}

{% block content %}
	<h1>Delete File</h1>

	{% if file %}
    <form action="/deletefile" method="post">
      <div>
      File:
	  <span><b>{{file.filename}}</b> ({{file.mimetype}}, {{file.authoremail}}, {{file.date}})</span>
	  <input type=hidden name="sitename" value="{{currentwebsite.sitename}}">
	  <input type=hidden name="filename" value="{{file.filename}}">
      </div>
      <div><input type="submit" value="Delete this file"></div>
    </form>
    {% else %}
    	Nothing
    {% endif %}
{% endblock %}